package org.demo2;

import org.springframework.batch.core.scope.context.ChunkContext;

public class ChunkListener implements org.springframework.batch.core.ChunkListener {
    @Override
    public void beforeChunk(ChunkContext chunkContext) {
        System.out.println("快要创建了");
    }

    @Override
    public void afterChunk(ChunkContext chunkContext) {
        System.out.println(chunkContext.getStepContext());
        System.out.println("执行完毕");
    }

    @Override
    public void afterChunkError(ChunkContext chunkContext) {

    }
}
